package com.niit.session13;
//定义一个自定义异常，需要继承Throwable或者其子类
public class AgeException extends RuntimeException{
	private static final long serialVersionUID = 1L;

	public AgeException() {
		super();
	}

	public AgeException(String message) {
		super(message);
		System.out.println("触发了年龄异常！");
	}
	
	

}
